<?php
namespace App\Service;
use App\Http\Controllers\Controller;
use App\Model\PeopleModel;
class PeopleService extends  Controller
{
    private $peopleModel;
    public  function __construct(PeopleModel $peopleModel)
    {
        $this->peopleModel=$peopleModel;
    }
    public function getToken($token)
    {
        return $this->peopleModel->where("token",$token)->first();
    }
}
